<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sj:head />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Manage OEM</title>
</head>
<script type="text/javascript">
	
</script>
<body>
<s:fielderror></s:fielderror>
<sj:div id="ManageOEMDiv">
	<s:actionmessage />

	<shiro:hasRole name="SUPER_ADMIN">
		<table width="99%" border="0" align="center" cellpadding="4"
			cellspacing="1" class="gridtable">
			<tbody>
				<tr>
					<td><s:include value="/manage/SuperAdminFilter.jsp"></s:include>
					</td>
					<td><sj:div id="hiddebButtonVendor">
						<sj:submit formIds="AdminFilterForm"
							href="populateAdminOEM.action"
							listenTopics="adminVendorSelectedTopic" targets="ManageOEMDiv"
							cssClass="btnbg" value="ShowOEM"></sj:submit>
					</sj:div></td>
				</tr>
			</tbody>
			</table>
	</shiro:hasRole>

	<s:form name="ManageOEM" id="ManageOEMForm" action="showOEM"
		theme="simple">

		<table width="100%" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tbody>
				<tr>
					<td style="height: 10px;"></td>
				</tr>
				<tr>
					<td align="right"><sj:submit value="CreateOEM"
						name="CreateOEM" cssClass="btnbg" href="createOEM.action"
						targets="ManageOEMDiv" formIds="ManageOEMForm"></sj:submit></td>
				</tr>
			</tbody>
		</table>

		<table width="99%" border="0" align="center" cellpadding="4"
			cellspacing="1" class="gridtable">
			<tbody>
				<!--<tr>
				<th colspan="4">All Available OEM</th>
			</tr>
			-->
				<tr>
					<th width="40%">OEM Name</th>
					<th width="20%"><strong>Country</strong></th>
					<th width="20%"><strong>State</strong></th>
					<th width="20%"><strong>Vendor</strong></th>
					<th width="20%"><strong>Status</strong></th>
				</tr>
				<s:iterator value="oemList">
					<!--<a href="<s:url action='addTransporter'/>"><s:property
		value="name" /></a>
	-->
					<s:url action='showOEMDetail' id="details">
						<s:param name="dto.oemId" value="%{oemId}" />
					</s:url>
					<tr class="alt">
						<td><sj:a href="%{details}" targets="ManageOEMDiv"
							formIds="ManageOEMForm">
							<s:property value="oemName" />
						</sj:a> <br />
						</td>
						<td><s:property value="state.country.countryName" /></td>
						<td><s:property value="state.stateName" /></td>
						<td><s:property value="vendor.name" /></td>
						<td><s:property value="vendor.status" /></td>

					</tr>
				</s:iterator>
			</tbody>
		</table>
	</s:form>
</sj:div>
</body>
</html>